package com.paomi.client.activity.detail.model;

import com.paomi.client.activity.reply.model.ReplyContent;

import java.io.Serializable;
import java.util.List;

/**
 * Created by pc on 2018/11/7
 * Describe:评论列表子项
 * {
 * "id": 2, //评论ID
 * "userId": 130078,//用户ID
 * "userImg": "http://image.mydeershow.com/upload/image/20181010/6dac2db9-3416-4e9b-8548-c11171679fe8.jpg",//用户头像
 * "userName": "187****1251",//用户名称
 * "content": "123",//评论内容
 * "like": 1,//点赞数
 * "reply": 3,//回复数
 * "time": 1540779303,//评论时间  时间戳(秒)
 * "isLike": true,// true 已点赞 false 未点赞
 * "replyComments": {//回复评论
 * "count": 1 //回复此评论的总人数
 * "data": [
 * ],
 * }
 * }
 * com.paomi.client.activity.detail.model
 */
public class Comment implements Serializable {
    private int id;
    private long userId;
    private String userImg;
    private String userName;
    private int replyType;
    private int replyCommentId;
    private long replyUserId;
    private String replyUserName;
    private String content;
    private int like;
    private int reply;
    private long time;
    private boolean isLike;
    private ReplyListJson replyComments;

    public int getReply() {
        return reply;
    }

    public void setReply(int reply) {
        this.reply = reply;
    }

    public int getReplyType() {
        return replyType;
    }

    public void setReplyType(int replyType) {
        this.replyType = replyType;
    }

    public int getReplyCommentId() {
        return replyCommentId;
    }

    public void setReplyCommentId(int replyCommentId) {
        this.replyCommentId = replyCommentId;
    }

    public long getReplyUserId() {
        return replyUserId;
    }

    public void setReplyUserId(long replyUserId) {
        this.replyUserId = replyUserId;
    }

    public String getReplyUserName() {
        return replyUserName;
    }

    public void setReplyUserName(String replyUserName) {
        this.replyUserName = replyUserName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getLike() {
        return like;
    }

    public void setLike(int like) {
        this.like = like;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public boolean isLike() {
        return isLike;
    }

    public void setLike(boolean like) {
        isLike = like;
    }

    public ReplyListJson getReplyComments() {
        return replyComments;
    }

    public void setReplyComments(ReplyListJson replyComments) {
        this.replyComments = replyComments;
    }

    public class ReplyListJson implements Serializable {
        private int count;
        private List<ReplyContent> data;

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public List<ReplyContent> getData() {
            return data;
        }

        public void setData(List<ReplyContent> data) {
            this.data = data;
        }
    }
}
